let Koa = require('koa');
let KoaRouter = require('koa-router');

const app = new Koa();
const router= new KoaRouter();



router.get('/',(ctx,next)=>{
  ctx.response.body="服务器返回的数据";
  console.log('服务器返回的数据')
})

router.get('/hijob/main/get/hot/job/infor',(ctx,next)=>{
  ctx.body="/hijob/main/get/hot/job/infor api";
  console.log('/hijob/main/get/hot/job/infor api')
})

router.get('/heyjob/get/school/name/list',(ctx,next)=>{
  ctx.body="/heyjob/get/school/name/list api";
})

router.get('/heyjob/get/part/time/job/by/school/name/time/search',(ctx,next)=>{
  ctx.body="/heyjob/get/part/time/job/by/school/name/time/search api";
})

router.get('/heyjob/get/part/time/job/by/school/name/search',(ctx,next)=>{
  ctx.body="/heyjob/get/part/time/job/by/school/name/search api";
})


router.get('/heyjob/u/get/student/information/search',(ctx,next)=>{
  ctx.body="/heyjob/u/get/student/information/search api";
})


router.get('/heyjob/u/get/shop/information/search',(ctx,next)=>{
  ctx.body="/heyjob/u/get/shop/information/search api";
})


router.get('/heyjob/u/get/my/collect/job/search',(ctx,next)=>{
  ctx.body="/heyjob/u/get/my/collect/job/search api";
})


router.get('/heyjob/u/get/my/collect/shopb/search',(ctx,next)=>{
  ctx.body="/heyjob/u/get/my/collect/shopb/search api";
})


router.get('/heyjob/get/job/on/ search',(ctx,next)=>{
  ctx.body="/heyjob/get/job/on/ search api";
})


router.get('/heyjob/u/get/my/job/search',(ctx,next)=>{
  ctx.body="/heyjob/u/get/my/job/search api";
})


router.get('/heyjob/u/get/my/appeal/search',(ctx,next)=>{
  ctx.body="/heyjob/u/get/my/appeal/search api";
})


router.get('/heyjob/u/delete/record',(ctx,next)=>{
  ctx.body="/heyjob/u/delete/record api";
})


router.get('/heyjob/u/add/record',(ctx,next)=>{
  ctx.body="/heyjob/u/add/record api";
})

router.get('/heyjob/put/record',(ctx,next)=>{
  ctx.body="/heyjob/put/record api";
})



app.
use(router.routes())
  .use(router.allowedMethods())


app.listen('3000',()=>{
  console.log('服务器启动成功');
  console.log('服务器地址：http://localhost:3000');
})
